package org.itboys.core.entity.mysql;

import org.itboys.mysql.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * @Author：贾琦磊
 * @Date：2018/8/15
 * @Description：入库单附表，入库时产品集合单体
 */
public class SundayInStoreOrderSKU extends BaseMySqlEntity{
    /**
     * SKU商品id，不是产品productId，产品下某一规格的商品，比如苹果为product，红苹果属于sku
     */
    private Long SKUId;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 入库单据id，该sku单据所属入库单的唯一标示
     */
    private Long orderId;
    /**
     * 数量，单品数量
     */
    private Integer num;
    /**
     * 单价，从价格表里面取
     */
    private BigDecimal price;

    public SundayInStoreOrderSKU() {
    }

    public SundayInStoreOrderSKU(Long SKUId,Integer num ){
        this.SKUId = SKUId;
        this.num = num;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getSKUId() {
        return SKUId;
    }

    public void setSKUId(Long SKUId) {
        this.SKUId = SKUId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
